package de.gwtprime.shared;

public class TradingPositionLong extends TradingPosition {

	/**
	 * Long position -> climbing stocks
	 */
	private static final long serialVersionUID = -6943179463869863538L;

	@Override
	public double getProfit(){
		return getCloseValue() - getOpenValue();
	}
	
	@Override
	public String getType(){
		return "Long";
	}

	@Override
	public TradingPositionType getTradingType() {
		return TradingPositionType.LONG;
	}
}
